class_name BaseShip
extends CharacterBody2D

#const SCREEN_WIDTH := 384
#const SCREEN_HEIGHT := 216

@onready var animation_player: AnimationPlayer = $AnimationPlayer
@onready var hurtbox: Hurtbox = $ShipSprite/Hurtbox
@onready var state_machine: StateMachine = $StateMachine
@onready var stats: Stats = $ShipStats

func move(running_speed: float) -> void:
	var direction := Input.get_vector("left_move", "right_move", "up_move", "down_move")

	velocity = direction * running_speed
	print(velocity)
	move_and_slide()

func transmit(transmit_speed: float, direction: Vector2) -> void:
	velocity = direction * transmit_speed
	
	move_and_slide()

func die() -> void:
	queue_free()
